package com.yhd.bridge;

import org.junit.Test;

import java.math.BigDecimal;

/**
 * @author yhd
 * @email yinhuidong1@xiaomi.com
 * @description 测试类
 * @since 2021/5/20 下午11:19
 */
public class MainTest {

    @Test
    public void test(){
        Phone xiaomiPhone = Phone.builder().phoneSale(new OnlinePhoneSale("线上", BigDecimal.TEN)).brand(new MiBrand("小米","www.mi.com")).build();
        System.out.println(xiaomiPhone.toString());
    }
}
